import React from 'react'
import ListData from './ListData';

export default function ListItem(props) {
    
    const { list,setCurtain,curtain} = props
    return (
        <>
            {
                list.map((item)=>{
                     return ( 
                            <ListData key={item.id} item={item} setCurtain={setCurtain} curtain={curtain} /> 
                     )  
                })
            }
        </>
    )
}
